package cn.topevery.garden.entity.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.topevery.garden.entity.po.GreTreePatrolLogFile;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 巡查记录表 视图
 *
 * @author code-generate
 * @date 2022-02-27
 */
@Data
@ApiModel(value = "GreTreePatrolLog 视图", description = "巡查记录表 视图")
public class GreTreePatrolLogVO implements Serializable{
    /**
     * 自增id
     */
    private Integer id;

        /**
     * 树木编号
     */
    @ApiModelProperty(value = "树木编号")
    @Excel(name = "树木编号", orderNum = "0")
    private String code;

    /**
     * 树木ID
     */
    @ApiModelProperty(value = "树木ID")
    @Excel(name = "树木ID", orderNum = "0")
    private Integer treeId;

    /**
     * 巡查时间
     */
    @ApiModelProperty(value = "巡查时间")
    @Excel(name = "巡查时间", orderNum = "0")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime patrolTime;

    /**
     * 巡查人ID
     */
    @ApiModelProperty(value = "巡查人ID")
    @Excel(name = "巡查人ID", orderNum = "0")
    private String userId;

    /**
     * 巡查人名称
     */
    @ApiModelProperty(value = "巡查人名称")
    @Excel(name = "巡查人名称", orderNum = "0")
    private String userName;

    /**
     * 内容
     */
    @ApiModelProperty(value = "内容")
    @Excel(name = "内容", orderNum = "0")
    private String content;

    /**
     * 状态（1-正常，2-异常）
     */
    @ApiModelProperty(value = "状态（1-正常，2-异常）")
    @Excel(name = "状态（1-正常，2-异常）", orderNum = "0")
    private Integer status;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @Excel(name = "备注", orderNum = "0")
    private String remark;

    @ApiModelProperty(value = "附件")
    private List<GreTreePatrolLogFile> fileList;
}
